package codename.carrot.bomberman.game.gamemessages;

import codename.carrot.bomberman.game.networkobjects.DroidPoint;

/**
 *  A networkmessage representing a request for item-pickup by a player
 * @author Gruppe A4
 *
 */

public class PlayerItemPickupMessage extends BombermanMessage {
	/**
	 * the UID for serialization
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 *  the position of the item to be picked up
	 */
	private DroidPoint position;
   
	/**
	 *  Constructor
	 * @param playerId the ID of the player that sent the item pickup request
	 * @param position the position of the item
	 */
    public PlayerItemPickupMessage(int playerId, DroidPoint position) {
        setPlayerId(playerId);
        this.position = position;
    }
    
    /**
     *  Returns the position for the item the player wants to pickup
     * @return the position
     */
    public DroidPoint getPosition() {
        return position;
    }
}
